]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
power: Use the new gnome-settings-daemon DBus names now the power plugin has moved...
authorRichard Hughes <richard@hughsie.com>
Mon, 4 Jul 2011 11:09:06 +0000 (12:09 +0100)
committerRichard Hughes <richard@hughsie.com>
Mon, 4 Jul 2011 16:57:25 +0000 (17:57 +0100)
js/ui/status/power.js

index 196170262c4ac96668c311f065154287e114d824..fe757ec3680a53209dd1d4291bd99d644ec99771 100644 (file)
@@ -12,8 +12,8 @@ const PanelMenu = imports.ui.panelMenu;
 const PopupMenu = imports.ui.popupMenu;
 const Util = imports.misc.util;
 
-const BUS_NAME = 'org.gnome.PowerManager';
-const OBJECT_PATH = '/org/gnome/PowerManager';
+const BUS_NAME = 'org.gnome.SettingsDaemon';
+const OBJECT_PATH = '/org/gnome/SettingsDaemon/Power';
 
 const UPDeviceType = {
     UNKNOWN: 0,
@@ -41,7 +41,7 @@ const UPDeviceState = {
 };
 
 const PowerManagerInterface = {
-    name: 'org.gnome.PowerManager',
+    name: 'org.gnome.SettingsDaemon.Power',
     methods: [
         { name: 'GetDevices', inSignature: '', outSignature: 'a(susbut)' },
         { name: 'GetPrimaryDevice', inSignature: '', outSignature: '(susbut)' },